<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>{{$title}}</title>
	<link rel="stylesheet" href="/css/style.css">
	<script src="/js/jquery-2.1.4.min.js"></script>
	<script src="/js/laydate.js"></script>
</head>
<body style="background: #F2F2F2;">
<form action="/ninecheck/creategroup" method="post" >
	{{ csrf_field() }}
	<ul class="noaccordw">
		<input type="hidden" name="status" value="{{$status}}">
		<?php $i = 0;?>
		@foreach ($groups as $group)
			<li>
				<span>{{$group->name}}</span>
				@if($group->status)
					@if(strstr($group->name,"补充说明"))
						<a class="churi xuanzhong" style="background: #FF9800;border:2px solid #FF9800" href="/ninecheck/updateelse/{{$group->id}}">修  改</a>
					@else
						<a class="churi xuanzhong" style="background: #FF9800;border:2px solid #FF9800" href="/ninecheck/update/{{$group->id}}">修  改</a>
					@endif
					<a class="churi gurg" href="javascript:void(0)">已完成</a>
				@else
					<div>
						@if(strstr($group->name,"补充说明"))
						<a class="churi xuanzhong" href="/ninecheck/showelse/{{$group->id}}">开始检查</a>
						@else
							<a class="churi xuanzhong" href="/ninecheck/show/{{$group->id}}">开始检查</a>
						@endif
						<a class="churi xuanzhong" href="javascript:void(0)" id="ClickMe2">不涉及</a>
						<input type="hidden" name="group[{{$i}}][groupId]" value="{{$group->id}}">
						<input type="hidden" name="group[{{$i}}][status]" value="2">
					</div>
				@endif
			</li>
			<?php $i++; ?>
		@endforeach
	</ul>

	<div class="rwada jcjs dibuann" href=""><a class="cfae" class="" href="/ninesmall/choose/{{$type}}">回到上页</a><input type="submit" class="" value="下一步"></div>
</form>
<script>
	$(".chuiuaw").click(
			function raea(){
				$(this).toggleClass("xuanzhong")
				if($(this).hasClass("xuanzhong")){
					$(this).next().next().val(2)
				}
				else{
					$(this).next().next().val(1)
				}

			}
	)
</script>
</body>
</html>